package controllers

import (
	beego "github.com/beego/beego/v2/server/web"
)

type MainController struct {
	beego.Controller
}



func (c *MainController) Get() {
	c.Data["Website"] = "beego.me"
	c.Data["Email"] = "astaxie@gmail.com"
	c.TplName = "index.tpl"
}

func (c *MainController)   SayHello(){
	name := c.Ctx.Input.Param(":name")
	c.Ctx.WriteString("hello "+name)
}

func (c *MainController) Test() {
	c.Data["json"] = "pong"
	c.ServeJSON()
}





